package small.woods.msweb.model.enums;

/**
 * @Author: small_woods
 * @Date: 2020/6/16 18:57
 */

public enum RespondCodeEnum {
    success(200,"成功"),
    userNameAndPasswordError(1006,"用户名密码错误");

    private int code;
    private String value;

    RespondCodeEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "RespondCodeEnum{" +
                "code=" + code +
                ", value='" + value + '\'' +
                '}';
    }
}
